package cn.bgs.vo;

import cn.bgs.utils.PageRequest;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class VehicleCar {
    @ApiModelProperty(value = "车辆自增id")
    @TableId(value = "vehicle_car_id", type = IdType.AUTO)
    private Integer vehicleCarId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "车牌号")
    private String vehicleNumber;

    @ApiModelProperty(value = "车辆品牌")
    private String vehicleBrand;

    @ApiModelProperty(value = "车辆型号")
    private String vehicleModel;

    @ApiModelProperty(value = "车辆颜色")
    private String vehicleColor;

    @ApiModelProperty(value = "是否购买月卡（是、否）")
    private String monthCardState;

    @ApiModelProperty(value = "月卡生效时间")
    private LocalDateTime effectTime;

    @ApiModelProperty(value = "月卡到期时间")
    private LocalDateTime dueTime;

    @ApiModelProperty(value = "是否是临时停车（是、否）")
    private String temporaryParkingState;

    @ApiModelProperty(value = "车辆状态（已绑定，未绑定）")
    private String vehicleState;

    @ApiModelProperty(value = "备注")
    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标志（y是删除 n是未删除）")
    private String deleteFlag;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    private PageRequest pageRequest;

    private String pc;
}
